﻿@{
    ViewBag.Title = "修改密码";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model ChangePassWordDto
<div class="row">
    <div class="panel panel-default">
        <div class="panel-heading">
            修改密码
        </div>
        <div class="panel-body">
            @using (Html.BeginForm("ChangePassWord", "User", FormMethod.Post, new { id = "postForm", @class = "form-horizontal", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
            {
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        新密码：</label>
                    <div class="col-sm-8">
                        @Html.PasswordFor(m => m.NewPassWord, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.NewPassWord)
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        确认密码：</label>
                    <div class="col-sm-8">
                        @Html.PasswordFor(m => m.CondirmNewPassWord, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.CondirmNewPassWord)
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit">
                            提交</button>
                        <a class="btn btn-default" type="button" href="@Url.Action("Index", "User")" >取消</a>
                    </div>
                </div>
            }
        </div>
    </div>
</div>
